﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Details.aspx.vb" Inherits="Universities.UniDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="ID" DataSourceID="SqlDataSource1" CellPadding="4" 
        ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
            ReadOnly="True" SortExpression="ID" />
        <asp:ImageField DataImageUrlField="Logo" HeaderText="Logo">
            <ControlStyle Height="200px" Width="200px" />
        </asp:ImageField>
        <asp:BoundField DataField="uni_name" HeaderText="uni_name" 
            SortExpression="uni_name" />
        <asp:BoundField ItemStyle-CssClass="Description" DataField="Description" HeaderText="Description" 
            SortExpression="Description">        
        </asp:BoundField>
    </Columns>
        <FooterStyle CssClass="_footerStyle"/>
        <HeaderStyle CssClass="_headerStyle"/>
        <PagerStyle CssClass="_pagerStyle"/>
        <RowStyle CssClass="_rowStyle" />
        <SelectedRowStyle CssClass="_SelectedRowStyle"/>
        <SortedAscendingCellStyle CssClass="_SortedAscendingCellStyle" />
        <SortedAscendingHeaderStyle CssClass="_SortedAscendingHeaderStyle"/>
        <SortedDescendingCellStyle CssClass="_SortedDescendingCellStyle"/>
        <SortedDescendingHeaderStyle CssClass="_SortedDescendingHeaderStyle"/>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:UniConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:UniConnectionString.ProviderName %>" 
    SelectCommand="SELECT * FROM [universities] WHERE ([ID] = ?)">
    <SelectParameters>
        <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
</asp:Content>
